//app.js
App({
    onLaunch: function () {
    // 展示本地存储能力
        var logs = wx.getStorageSync('logs') || []
        logs.unshift(Date.now())
        wx.setStorageSync('logs', logs)
        wx.getSystemInfo({
            success: res => {
                //导航高度
                this.globalData.navHeight = res.statusBarHeight + 50;
            }, fail(err) {
                console.log(err);
            }
        })
    },
    
    globalData: {
        userInfo: null,
        navHeight: 0,
        baseUrl: "http://127.0.0.1:8088",
        typeId: 0
    }
})